package com.anysoft.ui.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.anysoft.base.BaseWebViewFragment;

import java.util.ArrayList;

/**
 * Created by lty on 2018/7/9.
 */
public class NavFragmentAdapter extends FragmentPagerAdapter {
    
    private ArrayList<BaseWebViewFragment> mData;
    public NavFragmentAdapter(FragmentManager fm, ArrayList<BaseWebViewFragment> mFragments) {
        super(fm);
        mData = mFragments;
    }
    
    @Override
    public Fragment getItem(int position) {
        return mData.get(position);
    }
    
    @Override
    public int getCount() {
        return mData.size();
    }
}
